﻿@model PlmPersonnelinfoViewModel
@{
    Layout = null;
    ViewBag.Title = "监理人员管理";
    int j = 0;
}
<div class="page" layouth="27">
    <div class="leftPanel">
        <ul class="tree treeFolder">
            @{
                var jlList = Model.TheUnitList.FindAll((t) => { return t.UNIT_TYPE == 0; });
            }
            @*<li><a href="@Url.Action("SupervisorPersonnelList", "PlmSupervisorPersonnel", new { Section="YLZJ-1" })" target="ajax" rel="rygl_jlry_list">YLZJ-1</a>*@
            @if (jlList.Count > 0)
            {
                <li><a href="javascript">监理单位</a>
                    <ul>
                        @foreach (var item in jlList)
                        {
                            var liId = "cl" + j;
                            <li><a id="@liId" href="@Url.Action("SupervisorPersonnelList", "PlmSupervisorPersonnel", new { Section = item.UNIT_CODE })" target="ajax" rel="rygl_jlry_list">@item.UNIT_CODE</a></li>
                                                                                                                                                                                    j++;
                        }
                    </ul>
                </li>
            }
            
@* <li><a href="@Url.Action("SupervisorPersonnelList", "PlmSupervisorPersonnel", new { Section="YLJC-1" })" target="ajax" rel="rygl_jlry_list">YLJC-1</a></li>

            <li><a href="@Url.Action("SupervisorPersonnelList", "PlmSupervisorPersonnel", new { Section="YLZJ-2" })" target="ajax" rel="rygl_jlry_list">YLZJ-2</a>
                <ul>
                    <li><a href="@Url.Action("SupervisorPersonnelList", "PlmSupervisorPersonnel", new { Section="YLZD-3" })" target="ajax" rel="rygl_jlry_list">YLZD-3</a></li>
                    <li><a href="@Url.Action("SupervisorPersonnelList", "PlmSupervisorPersonnel", new { Section="YLZD-4" })" target="ajax" rel="rygl_jlry_list">YLZD-4</a></li>
                </ul>
            </li>
            <li><a href="@Url.Action("SupervisorPersonnelList", "PlmSupervisorPersonnel", new { Section="YLJC-2" })" target="ajax" rel="rygl_jlry_list">YLJC-2</a></li>*@
        </ul>
    </div>
    @* <div layouth="11" style="float: left; display: block; overflow: auto; width: 170px; border: solid 1px #CCC; line-height: 21px; background: #fff">
        <ul class="tree treeFolder">
              @{
                  var zjList = Model.TheUnitList.FindAll((t) => { return t.UNIT_CODE.Contains("ZJ"); });
                  var zdList = Model.TheUnitList.FindAll((t) => { return t.UNIT_CODE.Contains("ZD"); });
                  var jcList = Model.TheUnitList.FindAll((t) => { return t.UNIT_CODE.Contains("JC"); });
                 }

           @for (int i = 0; i < zjList.Count; i++)
           {
            <li>
                <a href="@Url.Action("SupervisorPersonnelList", "PlmSupervisorPersonnel", new { Section = zjList[i].UNIT_CODE })" target="ajax" rel="rygl_jlry_list">@zjList[i].UNIT_CODE</a>
                @for (int j =i+i; j <2+i+i; j++)
                {
                    var liId = "cl" + j;                   
               <ul>
                   <li>
                       <a id="@liId"  href="@Url.Action("SupervisorPersonnelList", "PlmSupervisorPersonnel", new { Section = zdList[j].UNIT_CODE })" target="ajax" rel="rygl_jlry_list">@zdList[j].UNIT_CODE</a>
                   </li>
               </ul> 
                }                            
            </li>
               <li><a id="@i"  href="@Url.Action("SupervisorPersonnelList", "PlmSupervisorPersonnel", new { Section = jcList[i].UNIT_CODE })" target="ajax" rel="rygl_jlry_list">@jcList[i].UNIT_CODE</a></li>
           }
        </ul>
    </div>*@
    <div id="rygl_jlry_list" class="rightPanel">
        <!--#include virtual="list1.html" -->
    </div>
</div>
